package com.the_last.constant;

/**
 * Redis键常量
 */
public class RedisKeyConstant {
    
    /**
     * 登录用户key
     */
    public static final String LOGIN_KEY = "login:user:";
    
    /**
     * 商品ID列表key
     */
    public static final String PRODUCT_ID_LIST = "product:id:list";
    
    /**
     * 商品基本信息key
     */
    public static final String PRODUCT_INFO_KEY = "product:info";
    
    /**
     * 商品销量key
     */
    public static final String PRODUCT_SALES_KEY = "product:sales";
    
    /**
     * 商品库存key
     */
    public static final String PRODUCT_STOCK_KEY = "product:stock";
    
    /**
     * 商品列表锁key
     */
    public static final String PRODUCT_LIST_LOCK = "product:list:lock";
    
    /**
     * 商品锁key前缀
     */
    public static final String PRODUCT_LOCK_PREFIX = "product:lock:";
    
    /**
     * 商品数据同步锁key
     */
    public static final String PRODUCT_SYNC_LOCK = "product:sync:lock";
    
    /**
     * 订单提交key前缀
     */
    public static final String ORDER_SUBMIT_PREFIX = "order:submit:";
    
    /**
     * 订单购买锁key
     */
    public static final String ORDER_PURCHASE_LOCK = "order:purchase:lock";
    
    /**
     * 订单处理完成标记后缀
     */
    public static final String ORDER_DONE_SUFFIX = ":done";
    public static final String USER_PERM_VERSION_KEY = "user:perm_version:";
    
    /**
     * 有效角色ID列表key
     */
    public static final String VALID_ROLE_IDS_KEY = "sys:role:valid:ids";
    
    /**
     * 有效角色ID列表锁key
     */
    public static final String VALID_ROLE_IDS_LOCK_KEY = "sys:role:valid:ids:lock";
    
    /**
     * 有效权限ID列表key
     */
    public static final String VALID_PERMISSION_IDS_KEY = "sys:permission:valid:ids";
    
    /**
     * 有效权限ID列表锁key
     */
    public static final String VALID_PERMISSION_IDS_LOCK_KEY = "sys:permission:valid:ids:lock";
    
    private RedisKeyConstant() {
        // 私有构造函数，防止实例化
    }
} 